<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="/js/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" href="/css/css.css">
<title>Insert title here</title>
<%Integer jid=Integer.parseInt(request.getParameter("jid")); %>
</head>
<body>
	<form>
	<input type="hidden" id="jid" value=<%=jid %> disabled="disabled">
	影视名称:<input name="jname" disabled="disabled"><br><br>
	题材:<select name="story1" disabled="disabled">
		</select>&nbsp;&nbsp;
		<select name="story2" disabled="disabled">
		</select>&nbsp;&nbsp;
		<select name="story3" disabled="disabled">
		</select>&nbsp;&nbsp;<br><br>
	投资金额:<input name="start" disabled="disabled"> ~<input type="text" name="end" disabled="disabled">万元<br><br>
	影视介绍:<textarea rows="10px" cols="38px" name="introduction" disabled="disabled"></textarea><br><br>
	影视亮点:<input type="text" id="lname0" disabled="disabled">&nbsp;&nbsp;&nbsp;<input type="text" id="lname1" disabled="disabled">
	&nbsp;&nbsp;&nbsp;<input type="text" id="lname2" disabled="disabled"><br><br>
	上映时间:<input type="date" name="date" disabled="disabled"><br><br>
	<input type="button" value="返回" id="fan">
</form>
</body>
<script type="text/javascript">
	var jid=$("#jid").val();
	$.getJSON("byone.do?jid="+jid,function(r){
		$("[name=jname]").val(r.jname);
		var op1=$("<option>"+r.sname1+"</option>");
		var op2=$("<option>"+r.sname2+"</option>");
		var op3=$("<option>"+r.sname3+"</option>");
		$("[name=story1]").append(op1);
		$("[name=story2]").append(op2);
		$("[name=story3]").append(op3);
		$("[name=start]").val(r.start);
		$("[name=end]").val(r.end);
		$("[name=introduction]").val(r.introduction);
		var arr=r.lnames.split(",");
		for(var i in arr){
			$("#lname"+""+i).val(arr[i]);
		}
		$("[name=date]").val(r.date);
	})
	$("#fan").click(function(){
		location.href="list.do";
	})
</script>
</html>